package com.xh.bussiness.teachbook.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;


/**
 * <p>
 *      讲义/教案练习内容
 * </p>
 *
 * @author Pitt zhang
 * @since 2019/8/27
 */
@Data
@Accessors(chain = true)
@TableName("bk_teaching_book_practice_content")
public class TeachingBookPracticeContent extends Model<TeachingBookPlanDetail> {

    /**
     * 主键ID , 这里故意演示注解可以无
     */
    @TableId(value = "id",type = IdType.UUID)
    private String id;

    /**
     * 讲义id
     */
    private String teachingBookId;

    /**
     * 练习id
     */
    private String practiceId;

    /**
     * 1.试题;2.文本
     */
    private Integer contentType;

    /**
     * 试题id
     */
    private String questionId;

    /**
     * 试题学科
     */
    private String subject;

    /**
     *1.箐优网试题，2.区域题库试题
     */
    private Integer questionSourceType;
    /**
     * 分值
     */
    private Integer score;

    /**
     * 段落内容
     */
    private String content;

    /**
     * 序号
     */
    private Integer orderNo;

    /**
     * 空行
     */
    private Integer blankLine;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
